<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/12/5 0005
  Time: 17:31
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>会话内访问次数</title>
</head>
<body>
<%
    Integer count=(Integer)session.getAttribute("Visit");
    if(count==null){
        count=1;//首次
    }else{
        count++;
    }
    session.setAttribute("Visit",count);
    out.print("您在会话内访问了"+count+"次");
%>
</body>
</html>
